package com.mf.ergate.web.common.utils;

import com.fasterxml.uuid.Generators;

public class IdGeneratorUtils {

	/**
	 * 获取一个UUID字符串
	 * @return UUID字符串
	 */
	public static String getUuid() {
		return Generators.randomBasedGenerator().generate().toString().replace("-", "");
	}

	/**
	 * 获取一个UUID字符串
	 * @return UUID字符串
	 */
	public static String getUuid(String prefix) {
		return prefix + "-" +Generators.randomBasedGenerator().generate().toString().replace("-", "");
	}
}
